<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h3>添加商品信息</h3>
	<form action="doaddGoods" method="post" enctype="multipart/form-data">
		<table>
			<tr>
				<td>名称</td>
				<td><input type="text" name="name" /></td>
			</tr>
			<tr>
				<td>标题</td>
				<td><input type="text" name="title" /></td>
			</tr>
			<tr>
				<td>市场价</td>
				<td><input type="text" name="markPrice" /></td>
			</tr>
			<tr>
				<td>现价</td>
				<td><input type="text" name="price" /></td>
			</tr>
			<tr>
				<td>折扣</td>
				<td><input type="text" name="sales" /></td>
			</tr>
			<tr>
				<td>品牌</td>
				<td><select name="brand.id">
				<option value="-1">请选择</option>
						<c:forEach var="b" items="${brandlist}">
							<option value="${b.id}">${b.name}</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<td>重量</td>
				<td><input type="text" name="weight" /></td>
			</tr>
			<tr>
				<td>产地</td>
				<td><input type="text" name="place" /></td>
			</tr>
			<tr>
				<td>描述</td>
				<td><textarea name="description" cols="45" rows="5"></textarea>
				</td>
			</tr>
			<tr>
				<td>产品分类</td>
				<td><select name="goodsType.id">
						<option value="">请选择</option>
						<c:forEach var="t" items="${goodsTypelist}">
							<option value="${t.id}">${t.name}</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<td>是否是热卖商品</td>
				<td>
				    <input type="radio" name="isHot" value="0" checked="checked"/>否
				    <input type="radio" name="isHot" value="1"/>是
				
				</td>
			</tr>
			<tr>
				<td>是否是限时特卖</td>
				<td>
				     <input type="radio" name="isSales" value="0" checked="checked"/>否
				    <input type="radio" name="isSales" value="1"/>是
				</td>
			</tr>
			<tr>
				<td>是否是类别热卖商品</td>
				<td>
				     <input type="radio" name="isTypeHot" value="0" checked="checked"/>否
				    <input type="radio" name="isTypeHot" value="1"/>是
				</td>
			</tr>
			<tr>
				<td>图片1</td>
				<td><input type="file" name="file" /></td>
			</tr>
			<tr>
				<td>图片2</td>
				<td><input type="file" name="file" /></td>
			</tr>
			<tr>
				<td>图片3</td>
				<td><input type="file" name="file" /></td>
			</tr>
			<tr>
				<td>图片4</td>
				<td><input type="file" name="file" /></td>
			</tr>
			<tr>
				<td>图片5</td>
				<td><input type="file" name="file" /></td>
			</tr>
			<tr>
				<td><input type="submit" value="提交" /></td>
			</tr>
		</table>
	</form>
</body>
</html>